package com.jxau.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.Date;

public class User {
    private String id;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String username;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String password;

    private String headPhoto;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Integer role;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String gender;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String school;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String email;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Date lastReadTime;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String signature;

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", username='" + username + '\'' +
                ", gender='" + gender + '\'' +
                ", school='" + school + '\'' +
                ", email='" + email + '\'' +
                ", signature='" + signature + '\'' +
                '}';
    }

    public User() {
    }

    public User(String id, String username, String password, String headPhoto, Integer role, String gender, String school, String email, Date lastReadTime, String signature) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.headPhoto = headPhoto;
        this.role = role;
        this.gender = gender;
        this.school = school;
        this.email = email;
        this.lastReadTime = lastReadTime;
        this.signature = signature;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getHeadPhoto() {
        return headPhoto;
    }

    public void setHeadPhoto(String headPhoto) {
        this.headPhoto = headPhoto;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getLastReadTime() {
        return lastReadTime;
    }

    public void setLastReadTime(Date lastReadTime) {
        this.lastReadTime = lastReadTime;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }
}
